//
//  MyAdvisoryOrderFinishDiagnoseCell.swift
//  EyeVisionForPatients
//
//  Created by PMC on 2020/4/11.
//  Copyright © 2020 QDSG. All rights reserved.
//

import UIKit

class RegistrationDetailInfoCell: UITableViewCell {
    
    func updateForRegistrationDetail(vm: RegistrationViewModel) {
        infoLabel.text = vm.deptName
        infoLabel.textColor = vm.status.detailTextColor
        descriptionLabel.text = vm.docName
        descriptionLabel.textColor = vm.status.detailTextColor
        diagnoseLabel.text = vm.scheduleDate
        diagnoseLabel.textColor = vm.status.detailDataColor
        adviseLabel.textColor = vm.status.detailTextColor
        adviseLabel.attributedText = vm.scheduleTimeText()
        timeLabel.text = "\(vm.regFee)元"
        timeLabel.textColor = vm.status.detailRegFeeColor
        patientLabel.text = vm.patientName
        patientLabel.textColor = vm.status.detailTextColor
    }
    
    @IBOutlet weak var infoLabel: UILabel!
    @IBOutlet weak var descriptionLabel: UILabel!
    @IBOutlet weak var diagnoseLabel: UILabel!
    @IBOutlet weak var adviseLabel: UILabel!
    @IBOutlet weak var timeLabel: UILabel!
    @IBOutlet weak var patientLabel: UILabel!
    
    
    @IBOutlet weak var infoTitleLabel: UILabel!
    @IBOutlet weak var descriptionTitleLabel: UILabel!
    @IBOutlet weak var diagnoseTitleLabel: UILabel!
    @IBOutlet weak var adviseTitleLabel: UILabel!
    @IBOutlet weak var timeTitleLabel: UILabel!
    @IBOutlet weak var patientTitleLabel: UILabel!
    
}
